//
//  VLabel.m
//  OCJavaScript
//
//  Created by xiaerfei on 2019/7/31.
//  Copyright © 2019 xiaerfei. All rights reserved.
//

#import "VLabel.h"
#import "UIColor+Hex.h"

@implementation VLabel

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)backgroundColor:(NSString *)color {
    NSLog(@"%@",color);
    self.backgroundColor = [UIColor colorWithHexString:color];
}

- (void)frame:(NSDictionary *)frames {
    self.frame = CGRectMake([frames[@"x"] floatValue], [frames[@"y"] floatValue], [frames[@"w"] floatValue], [frames[@"h"] floatValue]);
    NSLog(@"%@",frames);
}

@end
